/*
 * @Author: 徐伟杰/Hyuishine
 * @Date: 2022/5/19
 * @LastEditors: 徐伟杰
 * @LastEditTime: 2022-12-01 16:39:09
 * @Description: 我的页面
 * @Email: 1529315455@qq.com
 * @Company: 3xData
 * @youWant: add you want
 */
import globalPostRequest from '@/request/globalPostRequest.js'

// 个人信息修改
export function changeProfileApi (data, callback) {
	return globalPostRequest({
		url: '/system/user/profile',
		method: data.method,
		data: data.dist,
		callback,
		header: {
			'content-type': 'application/json;charset=UTF-8'
		},
	})
}

// 修改密码
export function changePasswordApi (data, callback) {
	return globalPostRequest({
		url: '/system/user/profile/updatePwd',
		method: 'put',
		data,
		callback,
		header: {
			'content-type': 'application/json;charset=UTF-8'
		},
	})
}